package com.tom.basic.query;

import lombok.Data;

@Data
public class BaseQuery {
    // 1.当前页码
    private Integer currentPage = 1;


    // 2.当前页展示条数
    private Integer pageSize = 5;

    /**
     * 计算分页起始位置
     * @return
     */
    public Integer getStart(){
        return (this.currentPage - 1) * this.pageSize;
    }
}
